import request from '@/utils/request'
export default{
    // 查询章程信息
    getAllChapterVideo(id){
        return request({
            url:`/eduservice/edu-chapter/nestedListByCourseId/${id}`,
            method:'get',
        })
    },
    addChapterInfo(eduChapter){
        return request({
            url:`/eduservice/edu-chapter/addChapterInfo`,
            method:'post',
            data:eduChapter
        })
    },
    findChapterInfo(id){
        return request({
            url:`/eduservice/edu-chapter/findChapterInfo/${id}`,
            method:'get',
        })
    },
    updateChapterInfo(chapter,id){
        return request({
            url:`/eduservice/edu-chapter/updateChapterInfo/${id}`,
            method:'put',
            data:chapter
        })
    },
    deleteChapterInfo(id){
        return request({
            url:`/eduservice/edu-chapter/deleteChapterInfo/${id}`,
            method:'delete'
        })
    }
}